/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.domain;

import hope.platform.data.domain.entity.RoleAuthority;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/16 16:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Indexed(unique = true)
    private String roleName;

    private Map<String, RoleAuthority> authorities;



    private Date gmtCreate;

    private Date gmtModified;
}
